<?php

	
	include_once ('./mvc/modelo/Accesatabla.php');
	include_once ('./mvc/modelo/diseno.php');
	$ds = new Diseno (); //Instaciamos diseno
	$id = $_GET['id'];
	$razas = new Accesatabla('razas');
	$razas->buscardonde('ID = '.$id.'');
	$cont = '
		<center>
			<div class="row">
				<div class="col-sm-12 col-md-12 col-lg-12">							
					<a href="./?url=show_razas" title="Regresar" class="btn btn-primary pull-left"><span class="glyphicon glyphicon-arrow-left"></span></a>
					<h3>Razas</h3><hr>							
				</div>
			</div>
			<form method="POST" action="./?url=add_razas&id='.$id.'"> 
				<table class="tabla"> 
					<tr>
						<td>Raza: </td>
						<td><input type="text" class="form-control" id="razas" name="razas" placeholder="Raza" value="'.$razas->obtener('RAZA').'" required></td>						
					</tr>
					
					<tr>
						<td>Descripci&oacute;n de Raza: </td>
						<td><textarea class="form-control" id="descripcion" name="descripcion" placeholder="Descripci&oacute;n de Raza" required>'.$razas->obtener('DESCRIPCION').'</textarea></td>						
					</tr>
										
				</table>
				<button class="btn btn-success">Guardar</button>
			</form>
		</center>';

	
	$ds->contenido($cont);
	$ds->mostrar();
	
?>